﻿using UnityEngine;
using System.Collections;

public class OntriggerEnter : MonoBehaviour {
	public GameObject Spike;
	bool isShoot = false;
	// Use this for initialization
	void OnTriggerEnter2D(Collider2D coll)
	{
		if (!isShoot){
			GameObject ob = Instantiate (Spike) as GameObject;
			ob.transform.position = transform.position;
			isShoot = true;
		}
	}
}
